package com.zyf.customview;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.AppCompatSeekBar;
import android.widget.SeekBar;

import com.zyf.customview.view.PlaneProgressView;

public class ProgessActivity extends AppCompatActivity {
    private AppCompatSeekBar seekBar;
    private PlaneProgressView planeProgress;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_progess);
        seekBar = (AppCompatSeekBar)findViewById(R.id.seekbar);
        planeProgress = (PlaneProgressView)findViewById(R.id.planeProgress);
        seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
            @Override
            public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                planeProgress.setCurrentProgress(progress);
            }

            @Override
            public void onStartTrackingTouch(SeekBar seekBar) {

            }

            @Override
            public void onStopTrackingTouch(SeekBar seekBar) {

            }
        });
    }
}
